package com.zzy.mccjt.autoconfigure.initializer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;


/**
 * description:
 *  mybatis配置
 * @author zzy
 * @version 1.0
 * @date 2020/2/11
 */

@Slf4j
@Configuration
//@ConditionalOnClass({SqlSessionTemplate.class})
public class MybatisConfig    {

    /*@Bean(name="MapperScannerConfigurerForFramework")
    public MapperScannerConfigurer mapperScannerConfigurer() {
        MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
        mapperScannerConfigurer.setSqlSessionFactoryBeanName("sqlSessionTemplate");
        // 设置mybatis mapper接口目录
        mapperScannerConfigurer.setBasePackage(PackageConstants.MAPPER_BASE_PACKAGE);
        log.info("MapperScannerConfigurer is ready to inject.");
        return mapperScannerConfigurer;
    }*/
}

